package org.emp.service.impl;

import org.emp.mapper.DeptMapper;
import org.emp.pojo.dto.DeptDTO;

import org.emp.pojo.entity.Dept;
import org.emp.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

/**
 * 加油
 *
 * @author konglingfeng
 * @date 2025/8/11
 * @desc
 */
@Service
public class DeptServiceImpl implements DeptService {

    @Autowired
    private DeptMapper deptMapper;

    @Override
    public List<Dept> findAllDept() {
        return deptMapper.findAllDept();
    }

    @Override
    public List<Dept> searchDeptByDeptNameAndCode(DeptDTO deptDTO) {
        return deptMapper.searchDeptByDeptNameAndCode(deptDTO);
    }

    @Override
    public Boolean insertDept(DeptDTO deptDTO) {
        return deptMapper.insertDept(deptDTO);
    }
}
